<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
    margin: 0 0;
    padding: 0 0;
}
.loop-wrap {
    position: relative;
    width: 500px;
    height: 300px;
    margin: 100px auto;
    overflow: hidden;
}

.loop-images-container {
    position: absolute;
    left: 0; 
    top: 0;
    width: 2500px; 
    height: 100%;
    font-size: 0;
    animation: Loop 10s linear infinite;
}
.loop-images{
    width: 500px;
    height: 300px;
}
@keyframes Loop {
    0% {transform: translateX(0);}
    10% {transform: translateX(0);} 
    15% {transform: translateX(-20%);} 
    35% {transform: translateX(-20%);}
    40% {transform: translateX(-40%);}
    60% {transform: translateX(-40%);}
    65% {transform: translateX(-60%);}
    85% {transform: translateX(-60%);}
    90% {transform: translateX(-80%);}
    100% {transform: translateX(-80%);}
}
@keyframes leftLoop {
    0% {left:0}
    10% {left:0}
    15% {left: -500px}
    35% {left: -500px;}
    40% {left: -1000px;}
    60% {left: -1000px;}
    65% {left: -1500px;}
    85% {left: -1500px;}
    90% {left: -2000px;}
    100% {left: -2000px;}
}

    </style>
</head>
<body>
    <div class="loop-wrap">
        <div class="loop-images-conainer">
            <img src="../img/1.jpg" alt="" class="loop-images">
            <img src="../img/2.jpg" alt="" class="loop-images">
            <img src="../img/3.jpg" alt="" class="loop-images">
            <img src="../img/4.jpg" alt="" class="loop-images">
            <img src="../img/5.jpg" alt="" class="loop-images">
        </div>
    </div>
</body>
</html>